wayland: Don't freeze the frame clock too early
authorBenjamin Otte <otte@redhat.com>
Fri, 13 Apr 2018 00:13:27 +0000 (02:13 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 13 Apr 2018 00:16:10 +0000 (02:16 +0200)
commitfc6018f19258d1e1a833dd5b0dc51b51af7eb1c4
tree8acd63a340caa47545a241a854152ff4ec5f71b1
parent4aab8e970bd99ff6eb5f92843eff1bac6998a7e8
wayland: Don't freeze the frame clock too early

We can't freeze the frame clock on commit, but only after-paint,
otherwise the frameclock will resume in the paint stage.

So freeze the frame clock at the end of the frame if we are waiting for
a frame callback.

Note; The diff is only lage because of indentation changes due to
avoiding early returns in favor of a branch.
gdk/wayland/gdksurface-wayland.c